import type { IDbSelect } from '@/types/global'
import { ENUM_DISABLE, ENUM_SEX, ENUM_USEABLE, ENUM_YESORNO } from './enum'

// 基础-是否
export const YESORNO_LIST: IDbSelect[] = [
  { label: '是', value: ENUM_YESORNO['是'] },
  { label: '否', value: ENUM_YESORNO['否'] }
]
// 基础-是否禁用
export const DISABLE_LIST: IDbSelect[] = [
  { label: '启用', value: ENUM_DISABLE['启用'], tagType: 'success' },
  { label: '禁用', value: ENUM_DISABLE['禁用'], tagType: 'danger' }
]
// 基础-是否启用
export const USEABLE_LIST: IDbSelect[] = [
  { label: '启用', value: ENUM_USEABLE['启用'], tagType: 'success' },
  { label: '禁用', value: ENUM_USEABLE['禁用'], tagType: 'danger' }
]
// 基础-性别
export const SEX_LIST: IDbSelect[] = [
  { label: '男', value: ENUM_SEX['男'], tagType: 'primary' },
  { label: '女', value: ENUM_SEX['女'], tagType: 'primary' }
]

// 请求方式
export const REQEST_METHODS: IDbSelect[] = [
  { label: 'GET', value: 'GET' },
  { label: 'POST', value: 'POST' },
  { label: 'PUT', value: 'PUT' },
  { label: 'DELETE', value: 'DELETE' },
  { label: 'HEAD', value: 'HEAD' },
  { label: 'CONNECT', value: 'CONNECT' },
  { label: 'OPTIONS', value: 'OPTIONS' },
  { label: 'TRACE', value: 'TRACE' },
  { label: 'PATCH', value: 'PATCH' }
]

// 参数类型
export const PARAM_TYPES: IDbSelect[] = [
  { label: 'String', value: 'String' },
  { label: 'Integer', value: 'Integer' },
  { label: 'Boolean', value: 'Boolean' },
  { label: 'Number', value: 'Number' },
  { label: 'Float', value: 'Float' },
  { label: 'Date', value: 'Date' },
  { label: 'Null', value: 'Null' },
  { label: 'Object', value: 'Object' },
  { label: 'Array', value: 'Array' },
  { label: 'Any', value: 'Any' },
  { label: 'Function', value: 'Function' },
  { label: 'NaN', value: 'NaN' },
  { label: 'RegExp', value: 'RegExp' },
  { label: 'Undefined', value: 'Undefined' }
]
